@import "../../global";



@topHeight: @navHeaderHeight;
@tabLabelHeight: 48px;
@tabPanelHeight: calc(100vh - 55px - 53px);

.tabsContainer {
  height: @tabLabelHeight;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.page {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100vh;
  width: 100vw;

  .top {
    height: @topHeight;
    width: 100%;
    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #1A1A1A;
    color: #FFFFFF;

    .topLeft {
      .flexContainer(20px);
      font-weight: bold;
    }
    .topCenter {
      .flexContainer(8px);
      font-size: 22px;
    }
    .topRight {
      .flexContainer(4px)
    }
    .iconButton {
      cursor: pointer;
    }
  }
  .body {
    height: calc(100vh - @topHeight);
    width: 100%;
    position: absolute;
    display:flex;
    flex-direction: column;

    .emptyTabs, :global(.ant-tabs-nav) {
      .tabsContainer;
    }
    :global(.ant-tabs-nav-list) {
      @tabLabelGap: 40px;
      height: @tabLabelHeight;
      align-items: center;

      :global(.ant-tabs-tab-active) {
        div {
          color: @main_color !important;
        }
      }
      :global(.ant-tabs-tab) {
        margin: 0 @tabLabelGap 0 0;
      }
      :global(.ant-tabs-tab):nth-last-child(2){
        margin-left: @tabLabelGap;
      }
      /*:global(.ant-tabs-tab):nth-last-child(2)::before{
        content: '';
        height: 22px;
        width: 1px;
        position: absolute;
        left: -@tabLabelGap;
        background-color: rgba(0,0,0,0.12);
      }*/
      :global(.ant-tabs-ink-bar) {
        height: 3px;
      }
    }
    :global(.ant-tabs-tabpane) {
      display: flex;
      flex-direction: column;
    }
    :global(.ant-tabs-nav) {
      margin: 0;
    }
  }
}

@height_back_previous: 56px;
.height_back_previous {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 56px;
  border-bottom: 1px solid @line_color;
  padding: 0 30px;
  .nav_l {
    display: flex;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    line-height: @height_back_previous;
    i {
      margin-right: 20px;
    }
  }
  .nav_r {
    display: flex;
    align-items: center;
  }
}

.language {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid @line_color;
}
.rule_modal {
  :global(.ant-modal-body){
    padding:0;
  }
  .modal_container {
    padding:24px;
  }
  .rule_box {
    border:1px dashed @line_color;
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 8px;
    .ti {
      margin-bottom:8px;
      color: @dark_bg;
    }
    .top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 14px;
      .choose_form {
        width: 286px;
        height: 100%;
        padding: 12px 0 8px;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 2px;
        color: #898989;
        .choose_form_box {
          height:136px;
          margin:0 8px;
          .form_item {
            padding: 8px 4px;
            color:@dark_bg;
            cursor: pointer;
          }
          .selected_form_item {
            padding: 8px 4px;
            color:@dark_bg;
            background: #f7f9fb;
            cursor: pointer;

          }
        }
      }
    }
    .btn_box {
      width:100%;
      text-align: center;
      padding-top: 8px;
      .button {
        display: inline-block;
        padding: 6px 30px;
        border-radius: 3px;
        width:auto;
        cursor: pointer;
        text-decoration: none;
        white-space: nowrap;
        text-align: center;
        background: #4076ff;
        color: #fff;
        &.cancal {
          background: #a3aaad;
          color: #fff;
          margin-left: 8px;
        }
      }
    }
  }
  .form_set {
    display: flex;
    justify-content: space-between;
    background: #f7f9fb;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 8px;
    .gz_con {
      .label_l {
        display: inline-block;
        width:96px;
        text-align: right;
      }
      .con_l {
        display: inline-block;
        margin-left:20px;
        color:@dark_bg;
      }
    }
    .delete {
      color: #a3aaad;
      cursor: pointer;
    }
  }
}


.panel {
  @panelWidth: 640px;
  height: @tabPanelHeight;
  width: @panelWidth;
  box-shadow: @shadow;
  position:fixed;
  right: 0;
  z-index: 2000;

  line-height: 1;
  background-color: #FFFFFF;
  @keyframes rightSlideIn {
    from {
      transform: translateX(@panelWidth);
    }
    to {
      transform: translateX(0);
    }
  }
  @keyframes leftSlideOut {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(@panelWidth);
      display: none;
    }
  }
  animation: rightSlideIn 0.5s ease-in;
  &.panelHide {
    animation: leftSlideOut 0.5s ease-in;
    animation-fill-mode: forwards;
  }
}
